<?php
/**
 * Created by PhpStorm.
 * User: LiWenYe
 * Date: 2020/11/9
 */

namespace App\Model;


interface Builder
{
    public function where($string, $operator, $value = null): self;

    public function first(): ?self;
    public function get(): ?self;

    public function select(array $array_keys): self;

    public function count(): int;

    public function orderBy($primaryKey, string $string): self;

    public function forPage($page, $limit): self;

    public function whereIn($int, array $value): self;
    public function toArray(): array;
}
